import urllib.request
import ssl

context = ssl._create_unverified_context()

url = "https://u002f/u002Fvdn.vzuu.com/u002FFHD/u002Fc4fa5d0c-7420-11eb-810d-ae3bd7b517b4.mp4?disable_local_cache=1&bu=zvideo&expiration=1613984437&auth_key=1613984437-0-0-b169a1c21cd5a26d10f22d74cadc5d18&f=mp4&v=ali"
#url = "http://v.hoopchina.com.cn/hupuapp/bbs/126285863575868/thread_126285863575868_20210222113927_61534.mp4?auth_key=1613995806-0-0-5000aae263820ddd1f39ed83b3f36b5c"
#url = "http://v.hoopchina.com.cn/bbs-editor-web/179243461936539/1613922654227_245.mp4?auth_key=1614000701-0-0-31f969091df43417c22cd97b222cd6d2"
header = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}

request = urllib.request.Request(url, headers=header)
res = urllib.request.urlopen(request, context = context)
urllib.request.urlretrieve(url, 'my_vdo.mp4')

#print(res.read().decode('utf8'))
#with open('./my_vdo.mp4',mode='w',encoding='utf8') as file:
#    file.write(res.read().decode('utf8'))